Smart vial interactive medication dosage dispensing system and method

ABSTRACT

A medication dispensing system is disclosed, having an interactive vial having a controllable lock for containing medications prescribed for a patient; a processor contained in the vial; a computer program stored in a computer readable medium the computer program comprising instructions for execution by the processor, the computer program comprising: instructions to read patient data for the patient from a data base stored in the computer readable medium; instructions to authorized dispensing of the medication from the vial; and instructions to upon reading an authorization value of “YES”, unlock the vial to allow access to the medication from the vial. A method for using the system is disclosed.

BACKGROUND OF THE INVENTION

The current opioid epidemic starts at home by abusing prescribedmedications. Typically, a patient abuses medication by taking too manypills too close together ahead of the prescribed medication dosageschedule. In other cases, children access prescription medications andbecome addicted opioids and turn to street drugs to but illicit drugs.Thus, there is a need for a medication dispensation system and methodthat controls access by medications at unauthorized times ahead of amedication dosage schedule or by persons other than the patient, such asunauthorized persons such as kids finding the pills in the home medicinecabinet.

FIELD OF THE INVENTION

The present invention relates to the field of controlled medicationdispensing.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is block diagram of interactive vial according to one embodimentof the invention;

FIG. 2 is diagram of a patient data stored in data structure for used bya processor accessing the data structure in a computer readable mediumfor controlling dispensing of a prescribed medication;

FIG. 3 is diagram of a patient data stored in data structure for used bya processor accessing the data structure in a computer readable mediumfor controlling dispensing of a prescribed medication;

FIG. 4A-4C are flow charts for controlling dispensing of medication; and

FIG. 5 is general diagram of a computer system for use in a particularembodiment of the invention.

DETAILED DESCRIPTION

A Smart Vial interactive medication dosage dispensing system and method,also referred to herein as a “Smart Vial” or “smart vial” is disclosedthat dispenses controlled and/or non-controlled medications asprescribed by a licensed medical professional such a physician. In aparticular embodiment, the Smart Vial includes but is not limited to aSmart electronic vial for containing and delivering controlled and/ornon-control medications as directed by the doctor to a particularpatient. An alarm on the digital vial is used to announce delivery ofcontrolled substances and violation of a dosage schedule. A thumb printand/or access code is to release the non-control substances which alsouses voice print, iris pattern, gesture, sweat print, doubleauthentication send password to vial, have user speak password andcompare to voice print for user. The Smart Vial reduces misuse ofmedication by kids. The Smart Vial provides a USB digital data port andwireless input output that enables a doctor, pharmacy, emergency medicalpersonnel or patient to access the patient data stored in a data base. Adoctor can check the patient data which includes but is not limited to adispensary report (indicating what medications a patient has taken,dosage and time taken), patient prescription history and/or medicationhistory. In a particular embodiment software is provided comprisingcomputer executable instruction stored on a computer readable medium indata communication with the Smart Vial processor that enables a pharmacyand doctor to fill a medical prescription and to run a dispensary reportand to check whether the patient is taking medication on schedule ornot. “Data communication” is used herein to mean data is exchanged inboth directions between two devices that are in “data communication”.

In a particular embodiment, a Wi-Fi device or smart phone is connectedto the Smart Vial through which the doctor can get a report of thepatient data. The Smart Vial data base contains patient data includingbut not limited to Patient DL and ID allergy/DOB/Doctor/patient name,age, weight, medical history, food consumption, medication dosagehistory indication what medications dosages a patient has taken and when(time of day) and pharmacy records. Medications that are stored in theSmart Vial can only be accessed by the patient during the medicationtime (not before directed medication time). An alert is selectively sentto the provider if the patient is taking overdose, accidentally takingthe prescribed medications. The Smart Vial is a reusable and refillablevial. In a particular embodiment, the Smart Vial processor monitors thepatient data in the data to calculate a sliding scale drug interactionwarning and dosage adjustment based on timing and dosage based onbiometric data of patient and timing of dosage. In a particularembodiment, the Smart Vial audibly announces a food warning prior todosage time, based on a sliding scale calculated by accessing thepatient data to indicate what the patient has eaten and what medicationthe patient has taken. For example, if a patient data indicates thepatient has not eaten within 30 minutes of when the dosage is due, theSmart Vial announces that the patient needs to eat and enter the data inthe patient data before the dosage is released with a YES command tounlock the vial. If the patient data indicates the patient has eatenwithin 30 minutes of when the dosage is due, the Smart Vial the dosageis released with a YES command to unlock the vial. If a patient dataindicates the patient has not eaten within 30 minutes of when the dosageis due, the Smart Vial announces that the patient needs to eat and enterthe data in the patient data before the dosage is released with a YEScommand to unlock the vial. If the patient data indicates that thedosage requires no food more than 30 minutes before taking, and themedication requires no food to be eaten with the medication, the smartvial announces that the patient should wait to take the medication (alsoreferred to herein as “dosage”) for a period of time indicated in thepatient data for the medication as indicated in the physician's andpharmacy's data base and sent to the patient data.

In another particular embodiment, the Smart Vial contains a digitalcamera to take an image of a patient's face to confirm the identity of apatient and also to take an image of a medication being released by thesmart vial to confirm the identity of a pill the patient is taking. Thepill identity of the pill is confirmed with the patient data base as thepills are placed into the Smart Vial and again as the pill exits thesmart vial. The pill is not released by the Smart Vial if the identityof the pill is not confirmed with the patient data on exit from thesmart vial. The Smart Vial processor identifies the medication/pillsimage by comparing the medication image taken by the camera at the SmartVial to a reference image in the patient data provided by the pharmacyor doctor or medication manufacturer for the prescribed medicine usingthe shape, color, logo and number on Smart Vial as compared to thereference image in the patient data for the medications prescribed tothe patient and contained in the smart vial. If the any one of theshape, color, logo or number on the Smart Vial image of the pill doesnot match the reference image for prescribed pill, dispensing of thepill is blocked by the Smart Vial processor. The pharmacy and doctor arecontacted and are sent the image of the pill being dispensed and thereference image to confirm or override the block on the dispensing ofthe pill. Errors can occur before the medication is sent to patient inthe Smart Vial. An error can occur if the doctor leaves off a criticalpart of the prescription such as a suffix on a particular medicationwhen calling in a prescription to a pharmacy or the pharmacist may notrecord the prescription properly leaving off a critical part of theprescription such as a suffix on a particular medication, or a number.Such errors by the doctor or pharmacy can cause the wrong medicine to beloaded into the Smart Vial. Thus, the actual dispensed medicine isimaged by the Smart Vial and checked before dispensing a medication. Thepill is identified and compared to the reference image on the Smart Vialto confirm that the type of medication and dosage are verified as properbefore dispensing the medication.

In a particular illustrative embodiment, the Smart Vial processormanages and dispenses multiple pills having multiple pill deliveryschedules in conjunction with a sliding scale drug interaction and foodregiment.

The Smart Vial is made of natural or un-natural material (e.g., plastic,metal). The Smart Vial helps to reduce addiction and overdose and theepidemic on controlled substance abuse. The Smart Vial is useful fordoctors, pharmacy, probation officers, court systems to verify whetherthe patient is taking their prescribed medications on schedule.

In another embodiment, the Smart Vial camera is used to capture video ofthe patient to monitor and confirm that patient places the imaged pillon their tongue and shows that the pill has been swallowed by thepatient by imaging sending a video stream to a Smart Vial server andshowing the imaged and dispensed pill on the patient's tongue is nolonger visible after being placed on the tongue and drinking water. TheSmart Vial helps to continuously track the usage of drugs by thepatient.

In a particular illustrative embodiment, the Smart Vial system andmethod accepts patient authentication data to verify a user's identity.The authentication data includes but is not limited to a patient's irisimage captured by the camera for comparison to an iris reference imagefor the patient, a patient's finger print image captured by the camerafor comparison fingerprint reference image, a patient's sweat printcaptured by the camera for comparison sweat print reference signature, apatient's voice recording captured by the camera for comparison voiceprint reference which are entered concurrently.

In another embodiment, the Smart Vial generates a password that isspoken by the patient to access the data. The Smart Vial processoraccesses the patient data including in the data base, the patient dataincluding but not limited to medical history, age, weight, biometricsfor blood pressure, respirations, pulse, blood sugar level, food eatenand when, pills taken, dosage and when and pending dosage schedule. Thesystem and method determines a sliding scale dosage time and quantityand food requirement based on the patient data. The patient data iscontained in a medical data base for all patients which can be accessedby police, physicians and emergency personnel when a patient isunconscious or otherwise incapacitated.

The patient can enter additional patient data including but not limitedto a pain level to indicate a level of urgency to be taken into accountfor timing and dosage, for example, in an urgent situation where thepain level is 8 or 9 on a scale of ten, the dosage can be increased withadditional pills and the dosage time can be advanced so that the pill isavailable sooner than the normal dosage schedule if not immediately. oranxiety level to indicate high anxiety. The patient, can enter acutesymptoms or and biometric data input into the system processor todetermine a sliding scale adjustment to the dosage schedule based on thepatient data. The patient also enters foods eaten, quantity of foodeaten and the times the foods were eaten as patient data to enteringinto determining the sliding scale adjustment to the dosage schedulebased on the patient data. The system uses the patient data to announcefood requirements and prohibitions for the patient.

Turning now to FIG. 1, in a particular illustrative embodiment amedication dispensing system 100 includes but is not limited to aninteractive vial 102 having a controllable lock 104 for containingmedications 106 prescribed for a patient. A processor 108 is containedin the vial.

A computer program 110 stored in a computer readable medium 112 thecomputer program comprising instructions for execution by the processor,the computer program including but not limited to instructions to readpatient data 114 for the patient from a data base 116 stored in thecomputer readable medium 112, instructions to authorize dispensing ofthe medication from the vial; and instructions to upon reading anauthorization value of “YES”, unlock the vial to allow access to themedication from the vial. In a particular illustrative embodiment thecontrollable lock is a magnetically actuated metal pin 116 and solenoid118 to magnetically lift the metal pin from a rotatable pill container120, the instructions to unlock the vial further comprising instructionsto send an unlock command to the controllable lock to lift themagnetically actuated pin 116 out of a receiving hole 120 on therotatable pill container 122 to allow the rotatable pill container torotate and provide access to a single dosage of the medication from thevial. The computer program further comprises instructions to send a lockcommand to the lock to release and lower the magnetically actuated pininto the receiving hole 120 on the rotatable pill container 122 toresist further rotation of the rotatable pill container so that only asingle dosage of the medication 123 is dispensed.

In a particular embodiment, the system of claim 1, the vial furthercomprises a patient authentication camera 124 that takes a picture ofthe patient's face 126; a patient's face reference image 128 stored inpatient data 130 for the patient in a database 116. In a particularembodiment, the computer program further comprising instructions tocapture and store in the data base an image of the patient's face(picture) 126 on the vial patient authentication camera; instructions tocompare the compare the image of the patient's face from the vial camerato the face reference image 128. In another embodiment, the computerprogram further comprises, instructions to, when the an image of thepatient's face on the vial camera and the reference image are comparedand correlate above 90, instructions to generate store in the data basea facial recognition authentication result with a value 130 of “YES”indicating a positive result indicating that the vial camera image andthe reference image match, else instructions to generate and store inthe data base a facial recognition authentication result with a value of“NO” indicating negative result indicating a positive result indicatingthat the vial camera image and the reference image do not match.

In another particular embodiment, the system further comprises a pair ofmedication authentication cameras 132 that takes top and bottom pictures(images) 131 of the single dosage of medication 123 in the vial beforesetting a medical verification value 130 to “YES” indicating that themedication matches a doctor's reference image 140 of the prescribedmedication stored in the data base. The doctors reference image is codedat the doctor's office computer which then sends electronically thedoctors reference images placed in the patient's data in the data. Inanother embodiment, the computer program further comprises instructionsto compare the compare one or both of the images of the single dose ofmedication 123 taken by the vial camera, to the medication referenceimage 140 in the data base and instructions to when the an image of thesingle dose of medication on the medication authentication camera 132and the reference image correlate above 90 percent matching, generateand store in the data base a medication authentication result with avalue of “YES” indicating a positive result indicating that the vialcamera images and the reference image match, else generate and store inthe data base a facial recognition authentication result with a value of“NO” indicating negative result indicating a positive result indicatingthat the vial camera image and the reference image do not match.

In another embodiment, system of further comprises a patientauthentication camera that takes a video of the patient's face takingthe medication showing the medication on the patient's tongue and thenswallowed by the patient and streams the video to the patient data inthe data base, in a particular embodiment the database is on a serverand the video is streamed to the server.

The data also contains a reference video of the patient's face takingthe medication stored in patient data for the patient in a database, thecomputer program further comprising instructions to compare the video134 of the patient's face taking the medication to the reference video136 when the video of image of the patient's face on the vial camera andthe reference of the patient's face taking the medication correlateabove 90 percent matching, generate store in the data base a medicationtaken authentication result with a value of “YES” indicating a positiveresult indicating that the of the patient's face taking the medicationand the reference video match and the patient has taken the medication,else generate store in the data base a medication taken authenticationresult with a value of “NO” indicating a positive result indicating thatthe of the patient's face taking the medication and the reference videomatch and the patient has not taken the medication.

In another embodiment, the system further comprises a temperature sensoron the vial, the computer program further comprising instructions tomonitor the temperature sensor to determine a vial temperature and storea vial temperature history in the patient data showing vial temperaturemeasurements and the time at which the temperature measurements weremade, in one example the temperature is measured once an hour; andinstructions to issue an alarm when the vial temperature exceeds 80degrees Fahrenheit or the vial temperature history exceed amanufacturer's recommendation for storage temperature for the prescribedmedication.

In another embodiment, the system further comprises instructions to readpatient data from the data base for medications the patient has takenand when; and instructions to calculate, using drug interaction storedin the data base for the medication for the patient, a sliding scalemedication dosage schedule based on the food eaten and when and themedications taken and store the sliding scale food requirement value inthe data base as an authentication value parameter for calculating theauthentication value to unlock the vial.

In another embodiment, the system further comprises instructions to readpatient data for food the patient has eaten stored in the patient dataas input by the patient or nurse; and instructions to calculate, usingdoctor food recommendations stored in the data base for the medicationfor the patient, a sliding scale food requirement value based on foodeaten by the patient and when and the medications taken and store thesliding scale food requirement value in the data base as anauthentication value parameter for calculating the authentication valueto unlock the vial.

In another embodiment, the database is stored in a computer readablemedium on the server; the computer program further comprisinginstructions to determine when a seal 135 on the vial has been breached,instructions to send an alert to authorities when the vial has beenbreached. A speaker 139 on the vial emits an alarm signal when the vialis open outside of the pharmacy. In another embodiment, the system ofthe computer program further comprises instructions to sending theunlock command, followed by user setting of delay of 2 to 10 secondslater, at the end of the delay a lock command to resist rotation of themedication wheel. The vial processor send the unlock command to thesolenoid that raises the metal pin stopping rotation of the medicationwheel.

Turning now to FIG. 2, in a particular illustrative embodiment, a datastructure 200 containing patient data 202 used by the vial processor tocontrol dispensing of the medication. As shown in FIG. 2, the datastructure includes fields containing patient data accessed and used bythe vial processor to control dispensing of the medication. Field 202contains patient data, prescription name 204, medication dosage 206 anddosage schedule 208, 210 reference images of the top and bottom imagesof the medication, 212 medication camera top and bottom images, 214reference images and reference video of patient taking medication, 216face authentication camera facial image and video of patient takingmedication; 218 patient food eaten and when eaten; 220 magneticallyactuated lock state: “locked/unlocked”. 222 drug interaction profilebased on medications taken, when taken and food eaten and when; 224patient discomfort level; 226 patient biometric data; 228 patientweight; 230 patient age; 232 patient symptoms; 234 prescribing doctor'sidentification; 236 medication originating pharmacy identification and238 authorization value parameters. The drug interaction profile for thepatient is stored in the data base.

As shown in FIG. 3 field 238 further comprises facial recognition value130, medication authorization value 132, 131 medication images of thedosage pill taken from the medication cameras on the vial, 140medication reference images from doctor; patient face reference image128; patient authentication camera image 126; single dose images (topand bottom) 123; patient authentication camera video 134; patientreference video 136 and vial temperature and vial temperature history.

Turning now to FIG. 4, a flow chart for a method dispensing of themedication as shown in FIG. 4, a flow chart showing a method forcontrolling from a vial processor an interactive vial having acontrollable lock for containing medications prescribed for a patient.As shown in FIG. 4, the method starts at 302 reading patient data forthe patient from a data base stored in the computer readable medium; 302authorizing dispensing of the medication from the vial; and 304 uponreading an authorization value of “YES”, unlocking the vial to allowaccess to the medication from the vial. The method proceeds to 306sending an unlock command to the controllable lock to lift amagnetically actuated pin out of a receiving hole on the rotatable pillcontainer to allow the rotatable pill container to rotate and provideaccess to a single dosage of the medication and 308 sending a lockcommand to the lock to release and lower the magnetically actuated pininto a receiving hole on the rotatable pill container to resist furtherrotation of the rotatable pill container so that only a single dosage ofthe medication is dispensed.

In another embodiment the method further comprises 310 taking a pictureof the patient's face using a patient authentication camera on the vial;312 capturing and storing in patient data in the data base an image ofthe patient's face on the vial camera; and 314 comparing the compare theimage of the patient's face from the vial camera to the face referenceimage; and 316 when the an image of the patient's face on the vialcamera and the reference image correlate above 90 percent matching,generating and storing in the data base a facial recognitionauthentication result with a value of “YES” indicating a positive resultindicating that the vial camera image and the reference image match,else 318 generating and storing in the data base a facial recognitionauthentication result with a value of “NO” indicating negative resultindicating a positive result indicating that the vial camera image andthe reference image do not match.

In another embodiment the method further comprises 320 taking a pictureof the single dosage of medication on a medication authentication camerain the vial before setting a verification value to “YES” indicating thatthe medication matches a doctor's reference image for the prescribedmedication; 322 accessing a medication reference image stored in patientdata for the patient in a database; 324 comparing the image of thepatient's face from the vial camera to the medication reference image;326 generating and storing in the data base a medication authenticationresult with a value of “YES” indicating a positive result indicatingthat the medication authentication camera image and the medicationreference image match when the an image of the patient's face on thevial camera and the reference image correlate above 90; else 328generating and storing in the data base a facial recognitionauthentication result with a value of “NO” indicating negative resultindicating a positive result indicating that the vial camera image andthe reference image do not match. In another embodiment the “YES” and“NO” commands are markers inserted into an authentication data streamsent to the vial processor. A YES marker comprises two YES markerscomprising a data value of 1 are sent 100 milliseconds apart from eachother which are acknowledged by the vial processor, followed by twosecond additional YES markers comprising a data value of 2 are sent tothe vial processor separated by 200 milliseconds after vial processoracknowledges the first two YES markers. If the timing or data valuevaries for either the first two YES markers or the second two YESmarkers, the YES command sequence is ignored by the vial processor.

A NO marker comprises two NO markers comprising a data value of 3 aresent 50 milliseconds apart from each other which are acknowledged by thevial processor, followed by two second additional NO markers comprisinga data value of 4 are sent to the vial processor separated by 250milliseconds after vial processor acknowledges the first two NO markers.If the timing or data value varies for either the first two NO markersor the second two NO markers, the NO command sequence is ignored by thevial processor.

In another embodiment the method further comprises 330 taking a video onthe patient authentication camera, of the patient's face taking themedication showing the medication on the patient's tongue and thenswallowed; 332 comparing the video of the patient's face taking themedication to the reference video when the video of image of thepatient's face on the vial camera and the reference video of thepatient's face taking the medication correlate above 90, 334 generatingand storing in the data base a medication taken authentication resultwith a value of “YES” indicating a positive result indicating that theof the patient's face taking the medication and the reference videomatch and the patient has taken the medication, else generating andstoring in the data base a medication taken authentication result with avalue of “NO” indicating a positive result indicating that the of thepatient's face taking the medication and the reference video match andthe patient has not taken the medication. The method further proceeds to336 monitoring the temperature sensor to determine a vial temperature atemperature sensor on the vial; and 338 issuing an alarm when the vialtemperature exceeds an alarm temperature of 80 degrees Fahrenheit. Thealarm temperature is programmable and is stored in the physician's database and pharmacy's data based and is down loaded to memory accessed bythe vial processor. The vial processor issues and alarm when the vialtemperature exceeds the alarm temperature for a duration specified inthe database and down loaded to memory accessed by the vial processor.

In another embodiment, the method further comprises 340 reading patientdata for medications the patient has taken and when the medications weretaken; and 342 calculating, using drug interaction stored in the database for the medication for the patient, a sliding scale medicationdosage schedule based on the food eaten and when and the medicationswere taken and store the sliding scale food requirement value in thedata base as an authentication value parameter for calculating theauthentication value to unlock the vial.

In another embodiment, the method further comprises 344 reading patientdata for food the patient has eaten; and 346 calculating, using doctorfood recommendations stored in the data base for the medication for thepatient, a sliding scale food requirement value based on food eaten andwhen and the medications taken and store the sliding scale foodrequirement value in the data base as an authentication value parameterfor calculating the authentication value to unlock the vial. In anotherembodiment, the vial processor uses the sliding scale food requirementto determine and announce at the vial as an alert to the patient takingthe medication that they need to eat while taking the medication.

In another embodiment, the method further comprises 348 alerting toauthorities when the vial seal has been breached. In another embodiment,the method further comprises 350 ending the unlock command followed by 2seconds later, a lock command to resist rotation of the medicationwheel.

FIG. 5 is a diagrammatic representation of a machine in the form of acomputer system 500 within which a set of instructions, when executed,may cause the machine to perform any one or more of the methodologiesdiscussed herein. In some embodiments, the machine operates as astandalone device. In some embodiments, the machine may be connected(e.g., using a network) to other machines. In a networked deployment,the machine may operate in the capacity of a server or a client usermachine in server-client user network environment, or as a peer machinein a peer-to-peer (or distributed) network environment. The machine maycomprise a server computer, a client user computer, a personal computer(PC), a tablet PC, a set-top box (STB), a Personal Digital Assistant(PDA), a cellular telephone, a mobile device, a palmtop computer, alaptop computer, a desktop computer, a communications device, a wirelesstelephone, a land-line telephone, a control system, a camera, a scanner,a facsimile machine, a printer, a pager, a personal trusted device, aweb appliance, a network router, switch or bridge, or any machinecapable of executing a set of instructions (sequential or otherwise)that specify actions to be taken by that machine.

It will be understood that a device of the present invention includesbroadly any electronic device that provides voice, video or datacommunication. Further, while a single machine is illustrated, the term“machine” shall also be taken to include any collection of machines thatindividually or jointly execute a set (or multiple sets) of instructionsto perform any one or more of the methodologies discussed herein.

The Smart Vial includes but is not limited to a computer system 500 mayinclude a Smart Vial processor 502 (e.g., a central processing unit(CPU), a graphics processing unit (GPU), or both), a main memory 504 anda static memory 506, which communicate with each other via a bus 508.The computer system 500 may further include a video display unit 510(e.g., liquid crystals display (LCD), a flat panel, a solid-statedisplay, or a cathode ray tube (CRT)). The computer system 500 mayinclude an input device 512 (e.g., a keyboard), a cursor control device514 (e.g., a mouse), a disk drive unit 516, a signal generation device518 (e.g., a speaker or remote control) and a network interface.

The disk drive unit 516 may include a machine-readable medium 522 onwhich is stored one or more sets of instructions (e.g., software 524)embodying any one or more of the methodologies or functions describedherein, including those methods illustrated in herein above. Theinstructions 524 may also reside, completely or at least partially,within the main memory 504, the static memory 506, and/or within theprocessor 502 during execution thereof by the computer system 500. Themain memory 504 and the processor 502 also may constitutemachine-readable media. Dedicated hardware implementations including,but not limited to, application specific integrated circuits,programmable logic arrays and other hardware devices can likewise beconstructed to implement the methods described herein. Applications thatmay include the apparatus and systems of various embodiments broadlyinclude a variety of electronic and computer systems. Some embodimentsimplement functions in two or more specific interconnected hardwaremodules or devices with related control and data signals communicatedbetween and through the modules, or as portions of anapplication-specific integrated circuit. Thus, the example system isapplicable to software, firmware, and hardware implementations.

In accordance with various embodiments of the present invention, themethods described herein are intended for operation as software programsrunning on a computer processor. Furthermore, software implementationscan include, but not limited to, distributed processing orcomponent/object distributed processing, parallel processing, or virtualmachine processing can also be constructed to implement the methodsdescribed herein.

As shown in FIG. 5, the present invention contemplates amachine-readable medium containing instructions 524, or that whichreceives and executes instructions 524 from a propagated signal so thata device connected to a network environment 526 can send or receivevoice, video or data, and to communicate over the network 526 using theinstructions 524. The instructions 524 may further be transmitted orreceived over a network 526 via the network interface device 520. Themachine-readable medium may also contain a data structure for containingdata useful in providing a functional relationship between the data anda machine or computer in an illustrative embodiment of the disclosedsystem and method.

While the machine-readable medium 522 is shown in an example embodimentto be a single medium, the term “machine-readable medium” should betaken to include a single medium or multiple media (e.g., a centralizedor distributed database, and/or associated caches and servers) thatstore the one or more sets of instructions. The term “machine-readablemedium” shall also be taken to include any medium that is capable ofstoring, encoding or carrying a set of instructions for execution by themachine and that cause the machine to perform any one or more of themethodologies of the present invention. The term “machine-readablemedium” shall accordingly be taken to include, but not be limited to:solid-state memories such as a memory card or other package that housesone or more read-only (non-volatile) memories, random access memories,or other re-writable (volatile) memories; magneto-optical or opticalmedium such as a disk or tape embodying computer instructions in atransmission medium; and/or a digital file attachment to e-mail or otherself-contained information archive or set of archives is considered adistribution medium equivalent to a tangible storage medium.Accordingly, the invention is considered to include any one or more of atangible machine-readable medium or a tangible distribution medium, aslisted herein and including art-recognized equivalents and successormedia, in which the software implementations herein are stored.

Although the present specification describes components and functionsimplemented in the embodiments with reference to particular standardsand protocols, the invention is not limited to such standards andprotocols. Each of the standards for Internet and other packet switchednetwork transmission (e.g., TCP/IP, UDP/IP, HTML, and HTTP) representexamples of the state of the art. Such standards are periodicallysuperseded by faster or more efficient equivalents having essentiallythe same functions. Accordingly, replacement standards and protocolshaving the same functions are considered equivalents.

The illustrations of embodiments described herein are intended toprovide a general understanding of the structure of various embodiments,and they are not intended to serve as a complete description of all theelements and features of apparatus and systems that might make use ofthe structures described herein. Many other embodiments will be apparentto those of skill in the art upon reviewing the above description. Otherembodiments may be utilized and derived there from, such that structuraland logical substitutions and changes may be made without departing fromthe scope of this disclosure. Figures are also merely representationaland may not be drawn to scale. Certain proportions thereof may beexaggerated, while others may be minimized. Accordingly, thespecification and drawings are to be regarded in an illustrative ratherthan a restrictive sense.

Such embodiments of the inventive subject matter may be referred toherein, individually and/or collectively, by the term “invention” merelyfor convenience and without intending to voluntarily limit the scope ofthis application to any single invention or inventive concept if morethan one is in fact disclosed. Thus, although specific embodiments havebeen illustrated and described herein, it should be appreciated that anyarrangement calculated to achieve the same purpose may be substitutedfor the specific embodiments shown. This disclosure is intended to coverany and all adaptations or variations of various embodiments.Combinations of the above embodiments, and other embodiments notspecifically described herein, will be apparent to those of skill in theart upon reviewing the above description.

The Abstract of the Disclosure is provided to comply with 37 C.F.R. §1.72(b), requiring an abstract that will allow the reader to quicklyascertain the nature of the technical disclosure. It is submitted withthe understanding that it will not be used to interpret or limit thescope or meaning of the claims. In addition, in the foregoing DetailedDescription, it can be seen that various features are grouped togetherin a single embodiment for the purpose of streamlining the disclosure.This method of disclosure is not to be interpreted as reflecting anintention that the claimed embodiments require more features than areexpressly recited in each claim. Rather, as the following claimsreflect, inventive subject matter lies in less than all features of asingle disclosed embodiment. Thus, the following claims are herebyincorporated into the Detailed Description, with each claim standing onits own as a separately claimed subject matter.

1. A medication dispensing system, the system comprising: an interactivevial having a controllable lock for containing medications prescribedfor a patient; a processor contained in the vial; a computer programstored in a computer readable medium the computer program comprisinginstructions for execution by the processor, the computer programcomprising: instructions to read patient data for the patient from adata base stored in the computer readable medium; instructions toauthorize dispensing of the medication from the vial upon receiving anauthorization value of “YES”, unlock the vial to allow access to themedication from the vial, wherein the authorization value is indicatedin a data stream containing markers sent to the smart vial.
 2. Thesystem of claim 1, wherein the controllable lock is a metal pin andsolenoid to magnetically lift the metal pin from a rotatable pillcontainer, the instructions to unlock the vial further comprising:instructions to send an unlock command to the controllable lock to lifta magnetically actuated pin out of a receiving hole on the rotatablepill container to allow the rotatable pill container to rotate andprovide access to a single dosage of the medication and instructions tosend a lock command to the lock to release and lower a magneticallyactuated pin into a receiving hole on the rotatable pill container toresist further rotation of the rotatable pill container so that only asingle dosage of the medication is dispensed.
 3. The system of claim 1,further comprising: a patient authentication camera that takes a pictureof the patient's face; a patient's face reference image stored inpatient data for the patient in a database; the computer program furthercomprising instructions to capture and store in the data base an imageof the patient's face on the vial camera; instructions to compare thecompare the image of the patient's face from the vial camera to the facereference image; instructions to when the image of the patient's face onthe vial camera and the reference image correlate above 90 percentmatching, generate store in the data base a facial recognitionauthentication result with a value of “YES” indicating a positive resultindicating that the vial camera image and the reference image match,else generate and store in the data base a facial recognitionauthentication result with a value of “NO” indicating negative resultindicating a positive result indicating that the vial camera image andthe reference image do not match.
 4. The system of claim 1, furthercomprising: a medication authentication camera that takes a picture ofthe single dosage of medication in the vial before setting averification value to “YES” indicating that the medication matches adoctor's reference image for the prescribed medication; a patient's facereference image stored in patient data for the patient in a database;the computer program further comprising instructions to capture andstore in the data base an image of the patient's face on the vialcamera; instructions to compare the compare the image of the patient'sface from the vial camera to the face reference image; instructions towhen the image of the patient's face on the vial camera and thereference image correlate above 90, generate store in the data base afacial recognition authentication result with a value of “YES”indicating a positive result indicating that the vial camera image andthe reference image match, else generate and store in the data base afacial recognition authentication result with a value of “NO” indicatingnegative result indicating a positive result indicating that the vialcamera image and the reference image do not match.
 5. The system ofclaim 1, further comprising: a patient authentication camera that takesa video of the patient's face taking the medication showing themedication on the patient's tongue and swallowed; a reference video ofthe patient's face taking the medication stored in patient data for thepatient in a database; the computer program further comprisinginstructions to compare the video of the patient's face taking themedication to the reference video when the video of image of thepatient's face on the vial camera and the reference of the patient'sface taking, the medication correlate above 90, generate store in thedata base a medication taken authentication result with a value of “YES”indicating a positive result indicating that the of the patient's facetaking the medication and the reference video match and the patient hastaken the medication, else generate store in the data base a medicationtaken authentication result with a value of “NO” indicating a positiveresult indicating that the of the patient's face taking the medicationand the reference video match and the patient has not taken themedication.
 6. The system of claim 1, further comprising: a temperaturesensor on the vial, the computer program further comprising instructionsto monitor the temperature sensor to determine a vial temperature; andinstructions to issue an alarm when the vial temperature exceeds 80degrees Fahrenheit.
 7. The system of claim 1, further comprising:instructions to read patient data for medications the patient has takenand when; and instructions to calculate, using drug interaction storedin the data base for the medication for the patient, a sliding scalemedication dosage schedule based on the food eaten and when and themedications taken and store the sliding scale food requirement value inthe data base as an authentication value parameter for calculating theauthentication value to unlock the vial.
 8. The system of claim 1,further comprising: instructions to read patient data for food thepatient has eaten; and instructions to calculate, using doctor foodrecommendations stored in the data base for the medication for thepatient, a sliding scale food requirement value based on food eaten andwhen and the medications taken and store the sliding scale foodrequirement value in the data base as an authentication value parameterfor calculating the authentication value to unlock the vial.
 9. Thesystem of claim 1, further comprising: a server, wherein the database isstored in a computer readable medium on the server; the computer programfurther comprising instructions to determine when the vial has beenbreached, instructions to send an alert to authorities when the vial hasbeen breached.
 10. The system of claim 1, further comprising: sendingthe unlock command followed by 2 seconds later, a lock command to resistrotation of the medication wheel.
 11. A method dispensing medicationdispensing system, the system comprising: controlling from a vialprocessor an interactive vial having a controllable lock for containingmedications prescribed for a patient; reading patient data for thepatient from a data base stored in the computer readable medium;authorizing dispensing of the medication from the vial; and instructionsto upon reading an authorization value of “YES”, unlocking the vial toallow access to the medication from the vial.
 12. The method of claim 1,wherein the controllable lock is a metal pin and solenoid tomagnetically lift the metal pin from a rotatable pill container, themethod further comprising: sending an unlock command to the controllablelock to lift a magnetically actuated pin out of a receiving hole on therotatable pill container to allow the rotatable pill container to rotateand provide access to a single dosage of the medication and sending alock command to the lock to release and lower a magnetically actuatedpin into a receiving hole on the rotatable pill container to resistfurther rotation of the rotatable pill container so that only a singledosage of the medication is dispensed.
 13. The method of claim 11, themethod further comprising: taking a picture of the patient's face usinga patient authentication camera on the vial; a patient's face referenceimage stored in patient data for the patient in a database; the computerprogram further comprising instructions to capture and store in the database an image of the patient's face on the vial camera; comparing thecompare the image of the patient's face from the vial camera to the facereference image; when the image of the patient's face on the vial cameraand the reference image correlate above 90, generating and storing inthe data base a facial recognition authentication result with a value of“YES” indicating a positive result indicating that the vial camera imageand the reference image match, else generating and storing in the database a facial recognition authentication result with a value of “NO”indicating negative result indicating a positive result indicating thatthe vial camera image and the reference image do not match.
 14. Themethod of claim 1, further comprising: taking a picture of the singledosage of medication on a medication authentication camera in the vialbefore setting a verification value to “YES” indicating that themedication matches a doctor's reference image for the prescribedmedication; accessing a medication reference image stored in patientdata for the patient in a database; the method further comparing theimage of the patient's face from the vial camera to the medicationreference image; generating and storing in the data base a medicationauthentication result with a value of “YES” indicating a positive resultindicating that the medication authentication camera image and themedication reference image match when the image of the patient's face onthe vial camera and the reference image correlate above 90 elsegenerating and storing in the data base a facial recognitionauthentication result with a value of “NO” indicating negative resultindicating a positive result indicating that the vial camera image andthe reference image do not match.
 15. The method of claim 11, furthercomprising: taking a video on the patient authentication camera, of thepatient's face taking the medication showing the medication on thepatient's tongue and then swallowed; comparing the video of thepatient's face taking the medication to the reference video when thevideo of image of the patient's face on the vial camera and thereference video of the patient's face taking the medication correlateabove 90, generating and storing in the data base a medication takenauthentication result with a value of “YES” indicating a positive resultindicating that the of the patient's face taking the medication and thereference video match and the patient has taken the medication, elsegenerating and storing in the data base a medication takenauthentication result with a value of “NO” indicating a positive resultindicating that the of the patient's face taking the medication and thereference video match and the patient has not taken the medication. 16.The method of claim 11, further comprising: monitoring the temperaturesensor to determine a vial temperature a temperature sensor on the vial;and issuing an alarm when the vial temperature exceeds 80 degreesFahrenheit.
 7. The method of claim 11, further comprising: readingpatient data for medications the patient has taken and when; andcalculating, using drug interaction stored in the data base for themedication for the patient, a sliding scale medication dosage schedulebased on the food eaten and when and the medications taken and store thesliding scale food requirement value in the data base as anauthentication value parameter for calculating the authentication valueto unlock the vial.
 18. The method of claim 11, the method furthercomprising: reading patient data for food the patient has eaten; andcalculating, using doctor food recommendations stored in the data basefor the medication for the patient, a sliding scale food requirementvalue based on food eaten and when and the medications taken and storethe sliding scale food requirement value in the data base as anauthentication value parameter for calculating the authentication valueto unlock the vial.
 19. The method of claim 11, further comprising:alerting to authorities when the vial has been breached.
 20. The methodof claim 11, further comprising: ending the unlock command followed by 2seconds later, a lock command to resist rotation of the medicationwheel.